package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Production;
import com.antdesignbackend.backend.entity.entityVo.ProductionVo;
import com.antdesignbackend.backend.mapper.ProductionMapper;
import com.antdesignbackend.backend.service.ProductionService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductionServiceImpl extends ServiceImpl<ProductionMapper, Production> implements ProductionService {
    @Autowired
    ProductionMapper productionMapper;

    @Override
    public List<ProductionVo> search(QueryWrapper<ProductionVo> queryWrapper, Page<ProductionVo> page) {
        return productionMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<ProductionVo> queryWrapper) {
        return productionMapper.count(queryWrapper);
    }
}
